package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;


/**
 * 名帖字库图片对象 danmo_famous_picture
 *
 * @author yangle
 * @date 2024-09-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoFamousPicture extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名帖字库id */
    @Excel(name = "名帖字库id")
    private Long cardId;

    /** 图片链接 */
    @Excel(name = "图片链接")
    private String name;

    /** 名帖字库信息 */
    private List<DanmoFamousCard> danmoFamousCardList;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setCardId(Long cardId)
//    {
//        this.cardId = cardId;
//    }
//
//    public Long getCardId()
//    {
//        return cardId;
//    }
//    public void setName(String name)
//    {
//        this.name = name;
//    }
//
//    public String getName()
//    {
//        return name;
//    }
//
//    public List<DanmoFamousCard> getDanmoFamousCardList()
//    {
//        return danmoFamousCardList;
//    }
//
//    public void setDanmoFamousCardList(List<DanmoFamousCard> danmoFamousCardList)
//    {
//        this.danmoFamousCardList = danmoFamousCardList;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cardId", getCardId())
            .append("name", getName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("updateTime", getUpdateTime())
            .append("danmoFamousCardList", getDanmoFamousCardList())
            .toString();
    }
}
